<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/PagingA.tld" prefix="pagingTagA"%>

<section id="boxListAlbum" class="boxTopic">
	<div class="boxTitle corner rightShadow">
		<h2 class="corner">Ảnh ${loaiAnhDep.name}</h2>
	</div>
	<div class="listItems">
		<c:choose>
			<c:when test="${lstAnhDep.size() > 0}">
				<c:forEach items="${lstAnhDep}" var="item">
					<div class="corner rightShadow">
						<a href='<spring:url value="/anh-dep/${fn:replace(loaiAnhDep.alias,\' \',\'-\')}/${fn:replace(item.alias,\' \',\'-\')}-L${loaiAnhDep.id}-A${item.id}.htm" />'  title="ảnh ${loaiAnhDep.name} ${item.name}" class='textOverflow tooltip'>
							<em class="textOverflow">Xem : ${item.views}</em>
							<img class="corner3" src='${item.linkImage}/w300/${item.nameImage}' alt='ảnh ${loaiAnhDep.name} ${item.name}' />
							<strong class="textOverflow">${item.name}</strong>
						</a>
					</div>
				</c:forEach>
				<c:if test="${pInfo.totalPage > 1}">
					<section class="pagination" id="paging">
						<spring:url value="/anh-dep/${fn:replace(loaiAnhDep.alias,\' \',\'-\')}-L${loaiAnhDep.id}" var="link" />
							<pagingTagA:paging searchUrl="${link}" curPageParam="-trang-" 
									searchValueParam=".htm" pagingInf="${pInfo}"></pagingTagA:paging>
					</section>
				</c:if>
			</c:when>
			<c:otherwise>Đang cập nhật...</c:otherwise>
		</c:choose>
		<h6 class="clear">&nbsp;</h6>
	</div>
</section>